import { get, post } from '@/util/request.js'

// AI聊天(弃用)
export const sendMsgApi = (params, config = {}) => post('/tools/chat/sendMsg', params, config)

// 查询用户余额
export const getUserChatAssetApi = (params, config = {}) => post('/tools/chat/getUserChatAsset', params, config)

// 查询用户信息
export const updateUserInfo = (params, config = {}) => post('/core/user/update', params, config)

// 添加聊天历史记录
export const addChatHis =  (params, config = {}) => post('/core/history/addHistory', params, config)

// 查询聊天历史记录
export const getChatHis =  (params, config = {}) => post('/core/history/getHistory', params, config)

// 清除聊天历史记录
export const clearChatHis =  (params, config = {}) => post('/core/history/clearHistory', params, config)